package cs236369.hw5;

import java.rmi.RemoteException;
import java.sql.SQLException;

@SuppressWarnings("javadoc")
public interface SearchWS extends java.rmi.Remote {

	/**
	 * Searches for all messages in a given radius
	 * 
	 * @param locationX The long coordinate
	 * @param locationY The lat coordinate
	 * @param d The radius to look in, in meters
	 * @return All messages such that their distance from (x, y) {@code <= d}
	 * @throws SQLException
	 * @throws RemoteException If something was wrong with the remote connection
	 */
	public abstract String[] searchLocal(double locationX, double locationY, double d) throws RemoteException;

	// empty result
	public abstract String[] searchKeywords(String[] args) throws RemoteException;

}